let arrays=['js','php'];

arrays.push('go','css','cpp');
console.log(arrays);

let elem=arrays.pop('cpp');
console.log(elem);
console.log(arrays);

let len=arrays.unshift('java');
console.log(len);
console.log(arrays);

let elem2=arrays.shift('java');
console.log(elem2);
console.table(arrays);